$(document).ready(function(){
    /*
    $("a.viewImage").fancybox({
        'overlayShow'	: false,
        'transitionIn'	: 'elastic',
        'transitionOut'	: 'elastic'
    });
    */
    $("#btnUpload").click(function (){
        showUploadImage_ID($(this).attr('rel'));
    })
    
});



function removeImage(image_id){
    $.ajax({
        type: "POST",
        url: "/process.php",
        data: "action=delete_image&image_id="+image_id,
        success: function(msg){
            if(msg=='ok'){
                $('#image_id_'+image_id).remove();
                Lightbox.hide();
            }
        }
    });
}